package com.maxd.bean.evaluation;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class EvaluationReq {

    @ApiModelProperty(value = "课程ID", required = true)
    @NotNull(message = "课程ID不能为空")
    private Long lessonId;

    @ApiModelProperty(value = "评价列表", required = true)
    @NotNull(message = "评价列表不能为空")
    @Size(min = 1, message = "评价列表不能为空")
    @Valid
    private List<EvaluationData> evaluationList;

}
